Skip to content

Conversation

@abhishek-potbhare
Copy link
Contributor

Correct the query param variable for sp-api client

query param should be postedBefore instead of PostedBefore

Referenece:
https://developer-docs.amazon.com/sp-api/docs/finances-api-v2024-06-19-use-case-guide#step-2-identify-the-appropriate-financialeventgroupid

API Provided by amazon:
GET /finances/2024-06-19/transactions?postedAfter=2023-07-26&postedBefore=2023-09-16

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects the query parameter for the SP API client to match the API documentation specifications.

  • Fixes query parameter case from "PostedBefore" to "postedBefore".
Comments suppressed due to low confidence (1)

lib/muffin_man/finances/v20240619.rb:10

  • The query parameter key is case-sensitive; it should be 'postedBefore' to match the API documentation.
@query_params["PostedBefore"] = posted_before unless posted_before.nil?

@abhishek-potbhare abhishek-potbhare merged commit d46f0ae into master Apr 24, 2025
10 checks passed
@abhishek-potbhare abhishek-potbhare deleted the Correct_the_amazon_financial_transactions_query_param branch April 24, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants